<%@ page language="java" pageEncoding="UTF-8" buffer="16kb"%>
<%@ include file="/base.jsp"%>
<%@ include file="/module/taglibs.jsp"%>
<%@ include file="/module/nocache.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<%@ include file="/module/js.jsp"%>
<%@ include file="/module/orderField.jsp"%>
<script type="text/javascript" src="${basePath}/js/jquery.Huploadify.js"></script>
    <link href="${basePath}/css/Huploadify.css" rel="stylesheet">
    <script type="text/javascript" src="${basePath}/js/raty/jquery.raty.js"></script>
    <link href="${basePath}/js/raty/jquery.raty.css" rel="stylesheet">
<style>

table label.error {
    margin-left: 5px;
    width: auto;
    display: inline;
    color: red;
}


</style>
</head>
<body>
     <form action="#" name="Form" id="Form" method="post">
       	<input type="hidden" name="khid" id="khid"  value="${data.khid}"/>
		<table cellpadding="0" cellspacing="0" border="0" class="table-border" width="95%">
			<tr >
				<td class="table-header" colspan="4" style="text-align: center;">星级支部考核</td>
			</tr>
			<tr>
				<td class="table-titleTD" style="width: 15%">党支部:</td>
				<td class="table-contentTD" style="width: 30%">${dzb.dZBMC}</td>
		
			    <td class="table-titleTD" style="width: 15%">考核年度:</td>
				<td class="table-contentTD" style="width: 30%">${data.khnd}</td>
			</tr>
			
			<tr>
				<td class="table-titleTD" style="width: 15%">支部党员先锋指数上半年总分:</td>
				<td class="table-contentTD" style="width: 30%">${data.sbnzf}</td>
		
			    <td class="table-titleTD" style="width: 15%">支部党员先锋指数下半年总分:</td>
				<td class="table-contentTD" style="width: 30%">${data.xbnzf}</td>
			</tr>
			 <tr>
				<td class="table-titleTD" style="width: 15%">支部党员先锋指数全年平均值:</td>
				<td class="table-contentTD" style="width: 30%">${data.qnpjz}</td>
				
				<td class="table-titleTD" style="width: 15%">民主测评情况:</td>
				<td class="table-contentTD" style="width: 30%">${data.mzcpqk}</td>
			</tr>
			 <tr>
				<td class="table-titleTD" style="width: 15%">总支委员会考核情况:</td>
				<td class="table-contentTD" style="width: 30%">${data.zzwyhkhqk}</td>
			
				<td class="table-titleTD" style="width: 15%">其他考核情况:</td>
				<td class="table-contentTD" style="width: 30%">${data.qtkhqk}</td>
			</tr>
			<tr>
				<td class="table-titleTD" style="width: 15%">星级:</td>
				<td colspan="3" class="table-contentTD" style="width: 30%"><div id="stars"></div></td>
			</tr>
		</table>
	</form>	
	<input type="hidden" id="aa" value="${data.stars}"/>
	<table cellpadding="1" cellspacing="1" border="0" align="left">
			<c:if test="${_login_user_type==2}">
			<tr>
				<td>
				  <kl:permission permisstionList="${permisstionList}"
                    currentUser="${_login_console_user}"
                    currentCatalogId="<%=CatalogUtils.getCatalogId(\"ZHDJ_KHGL_XJZB\")%>" key="modify"> 
				<input type="button" id="btnUptContinue" class="inputButton"
					style="text-align: center;" value="修改" />
				</kl:permission>
				</td>
				<td><input type="button" id="btnBack" class="inputButton"
					style="text-align: center;" value="返回" /></td>
			</tr>
		   </c:if>
		</table>
		<br />
		<script>
		window.onload = function() {
			var xxsl = $("#aa").val();
			$('#stars').raty({
		 		readOnly : true,
		 		number : 10,
                starOff : '${basePath}/js/raty/images/star-off.png',
                starOn  : '${basePath}/js/raty/images/star-on.png',
                score : parseInt(xxsl)
            });
		}
				
				//点击修改
				$("#btnUptContinue").click(function() {
					window.location.href="${basePath}/partyBranchStar/updateUI?khid="+$("#khid").val();
		 		});
				
				//点击返回
				  $("#btnBack").click(function() {
					  document.Form.action ="${basePath}/partyBranchStar/list";
					  document.Form.submit();
		 		  });
		</script>

</body>
</html>